package com.dianxin.smartpark;

import cn.hutool.core.util.RandomUtil;
import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import com.dianxin.common.oss.util.MinioUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.integration.annotation.IntegrationComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import javax.annotation.Resource;

@SpringBootApplication(scanBasePackages = {"com.dianxin"})
@MapperScan("com.dianxin.smartpark.dao")
@NacosPropertySource(dataId = "smart-park", autoRefreshed = true)
@EnableAsync
@EnableScheduling
@IntegrationComponentScan("com.dianxin.common.mqtt.service")
public class SmartParkApplication {

    @Resource
    private MinioUtil minioUtil;
    public static void main(String[] args) {
        SpringApplication.run(SmartParkApplication.class, args);
    }

}
